package com.ycsj.goldmedalnewconcept.fragment;

import io.rong.imlib.model.UserInfo;

import java.util.ArrayList;

import se.emilsjolander.stickylistheaders.StickyListHeadersListView;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;

import com.ycsj.goldmedalnewconcept.activity.LoginActivity;
import com.ycsj.goldmedalnewconcept.bean.friendInfo;
import com.ycsj.goldmedalnewconcept.constant.ConfigConstant;
import com.ycsj.goldmedalnewconcept.constant.NetConstant;
import com.ycsj.goldmedalnewconcept.utils.SPUtils;
import com.ycsj.goldmedalnewconcept.R;
import com.ycsj.goldmedalnewconcept.StartActivity;
//点我登录
public class ClassConversationNotloginFragment extends BaseFragment {

	private static final String TAG = "ClassConversationNotloginFragment";
	private StickyListHeadersListView lv_process_list;
	//获得好友列表
		private String path = NetConstant.FRIENDLIST;
		public ArrayList<friendInfo> friendlist=new ArrayList<friendInfo>();
		public ArrayList<UserInfo> UserList=new ArrayList<UserInfo>();
	public static ClassConversationNotloginFragment newInstance() {
		ClassConversationNotloginFragment collectFragment = new ClassConversationNotloginFragment();

		return collectFragment;
	}

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		
			View view = inflater.inflate(R.layout.fragment_classconversation_notlogin, container,
					false);
			SPUtils.put(getActivity(), ConfigConstant.CURRENTFRAGMENT, TAG);
			Button bt_login = (Button) view.findViewById(R.id.bt_login);
			bt_login.setOnClickListener(new OnClickListener() {
				
				@Override
				public void onClick(View v) {
					Intent intent = new Intent(getActivity(),StartActivity.class);
					startActivity(intent);
				}
			});
			
			return view;
		
	}

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		initViews(view);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
	}

	private void initViews(View view) {
		
	}

	@Override
	public void onDestroy() {
		super.onDestroy();
	}

	@Override
	public void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
	}
	
	@Override
	public String getFragmentName() {
		return TAG;
	}

	
	
		
}
